#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include "AVL.h"
int main()
{
	//int a[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
	//int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
	//AVLTree<int, int> a1;
	///*a1.insert(make_pair(1, 1));
	//a1.insert(make_pair(2, 2));
	//a1.insert(make_pair(3, 3));
	//a1.insert(make_pair(4, 4));*/
	//for (auto& e : a)
	//{
	//	a1.insert(make_pair(e, e));
	//}
	//a1.Inorder();
	AVLTree<int, int> a1;
	a1.insert(make_pair(1, 1));
	a1.insert(make_pair(2, 2));
	a1.insert(make_pair(3, 3));
	a1.insert(make_pair(4, 4));
	a1.insert(make_pair(5, 5));
	a1.insert(make_pair(6, 6));
	a1.insert(make_pair(7, 7));
	a1.insert(make_pair(8, 8));
	a1.insert(make_pair(9, 9));
	a1.insert(make_pair(10, 10));
	a1.insert(make_pair(11, 11));
	a1.insert(make_pair(12, 12));
	a1.Inorder();
	cout << a1.isAVLTree();
	return 0;

}